<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<html lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
   	<meta charset="utf-8">
   	<title>{{$pageTitle}}-{{$site[title]}}</title>
	<META NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
	<meta name="Keywords" content="{{if $seokeywords}}{{$seokeywords}}{{else}}{{$site[seokeywords]}}{{/if}}" />
	<meta name="Description" content="{{if $seodescription}}{{$seodescription}}{{else}}{{$site[seodescription]}}{{/if}}" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
   	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
   	<?PHP //echo $this->Combinator->less(); 
   	?>
   	{{$this->Html->css(array('bootstrap.min.css','font-awesome.min.css','style.css','z.css','jquery.jgrowl.css',))}}
   	<!--[if lt IE 9]>
          <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
          {{$this->Html->script(array('html5shiv.js','respond.min.js'))}}
 	  <![endif]-->
 	{{$this->Html->script(array(
            'jquery/jquery.min.js',
            'jquery/jquery.cookie.js',        
            'i18n/language-zh-cn.js',
            'bootstrap.min.js',
            'common.js','front.js',
            'jquery/jquery.jgrowl.min.js'
        ));
	}}
   	
{{if Configure::read('Page.extracss') }}
<style>
{{Configure::read('Page.extracss')}}
</style>
{{/if}}
<script type="text/javascript">
var BASEURL = "{{APP_SUB_DIR}}";
var ADMIN_BASEURL = BASEURL+"/manage";
</script>
</head>
<body>
<header><!--head start-->
     <div class="container">
       <div class="navbar">
         <div class="navbar-inner"><!--navbar-inner start-->
            <a class="brand" href="{{$this->Html->url(Configure::read('Site.logo_url'))}}">
              <img src="/img/rs/logo.png" width="330" height="58" alt="reportsolution logo">
            </a>
            <div class="nav"><!--daohang start-->
            	<?php 
					if(empty($top_category_id)) $top_category_id=0;
				echo $this->Section->getNavMenu('Category',
					array(
						'selectedid'=> $top_category_id,
						'ulAttributes'=>array('class'=>'nav pull-right nb'),
			                        'defaultClass'=>'ui-state-default',
						'preli'=>'',
						'sufli'=>'',
						'maxdepth' => 2,
					),$site_cate_id
				);
				?>
            </div><!--daohang end-->
            
            <div class="login_wrapper" style="width:auto;right:200px;background:transparent;">
            	<a href="http://www.solupe.com/" target="_blank" class="btn btn-primary btn-xs w135 mr10"><i class="glyphicon glyphicon-lock"></i> &nbsp; {{__('Login')}}</a>
				<span class="mr10">
		         	<a class="btn btn-success btn-xs w135" target="_blank" href="http://www.solupe.com/users/regVClient"><i class="glyphicon glyphicon-user"></i> &nbsp; {{__('Registration')}}</a>
		         </span>
            </div>
            
            <div class="callus">
            	
            
            Call us:{{Configure::read('Site.phone')}}</div>
         </div><!--navbar-inner end-->
       </div>
     </div>
</header><!--head end-->

<?php
    $flash_msg =  $this->Session->flash();
	if($flash_msg){
		echo "<div class=\"container\">$flash_msg</div>";
	}
	//注意#maincontent中，只包含一个'.container'，否则无法前台编辑模板可能会走样。多行的使用实现使用<div class="row"></div>。
?>

<div id="maincontent" class="maincontent clearfix">    
    {{$content_for_layout}}
</div><!-- //end maincontent -->

{{template Elements/footer}}
